<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTodolsitsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('todolsits', function (Blueprint $table) {
            $table->increments('id');
            $table->text('desc')->comment('任务描述');
            $table->string('url')->nullable()->comment('活动url');
            $table->tinyInteger('status')->default(0)->comment('执行状态 0未执行 1执行完成');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('todolsits');
    }
}
